package org.celery.modules.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 用户与域名关联表实体类
 *
 * @author Celery
 * @since 2022-04-06
 */
@Data
@TableName("blade_user_domain")
@ApiModel(value = "UserDomain对象", description = "用户与域名关联表")
public class UserDomain implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private String tenantId;
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 域名
     */
    @ApiModelProperty(value = "域名")
    private String domain;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;


}
